
class student{
    public String name;
    private int age;
    private double height;
    private double weight;

    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return this.age;
    }
    public void setHeight(double height){
        this.height = height;
    }
    public double getHeight(){
        return this.height;
    }
    public void setWeight(double weight){
        this.weight = weight;
    }
    public double getWeight(){
        return this.weight;
    }
}
public class Test {
    public static void main(String[] args){
        student stu = new student();
        stu.name = "jay chou";
        stu.setAge(19);//正确
        System.out.println(stu.getAge());
    }
}
